package com.flyduck.vueshop.system.feign;

import com.flyduck.vueshop.common.core.lang.Result;
import com.flyduck.vueshop.system.fallback.RemoteRoleFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * SysUserFeignClient
 * </p>
 *
 * @author flyduck
 * @since 2024-07-09
 */
@FeignClient(name = "vueshop-service-system",contextId = "remoteRoleFeignClient",fallback = RemoteRoleFallback.class)
public interface RemoteRoleFeignClient {
    @GetMapping("/system/remote/role/getPermissionListByUserId")
    Result<List<String>> getRoleCodeListByUserId(@RequestParam("userId") Long userId);
}
